﻿#include "deletereport.h"
#include "ui_deletereport.h"
#include <QPainter>
DeleteReport::DeleteReport(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::DeleteReport)
{
    ui->setupUi(this);
    this->setWindowFlags(Qt::Dialog|Qt::FramelessWindowHint);
    setAttribute(Qt::WA_TranslucentBackground,true);    //设置透明
}

DeleteReport::~DeleteReport()
{
    delete ui;
}

void DeleteReport::on_cancel_pushButton_2_clicked()
{   m_isdeleted = false;
    this->close();
}

void DeleteReport::on_confirm_pushButton_2_clicked()
{
    m_isdeleted = true;
    this->close();
}
void DeleteReport::paintEvent(QPaintEvent *event)
{

    Q_UNUSED(event)
    QPainter painter(this);
    painter.fillRect(rect(),QColor(0,0,0,100));
}
bool DeleteReport::isDeletedReport()
{
    return m_isdeleted;
}
